<?php

namespace App\Kit;



class RedisKey
{

    const ORDER_SN = "order_sn:date:"; //订单每日自增id

    public static function admin_token($id) {
        return 'admin:'. $id.':token';
    }

    public static function customer_token($id) {
        return 'customer:'. $id.':token';
    }

    public static function api_token($id) {
        return 'api:'. $id.':token';
    }

    public static function admin_info($id) {
        return 'admin:'. $id.':info';
    }

    public static function api_info($id) {
        return 'api:'. $id. ':info';
    }

    public static function order_sn() {
        return 'order_sn:date:' . date('Ymd');
    }

    public static function batch_sn() {
        return 'batch_sn_sn:key';
    }

    //USPS token
    public static function usps_token($name, $pass) {
        return 'usps:token:'.$name.':'.$pass;
    }

}
